﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDr_Decision_TreeBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDr_Decision_Tree;

        void Remove(IDr_Decision_Tree entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDr_Decision_Tree;

        /// <summary>
        /// 保存大中修比选方案
        /// </summary>
        /// <param name="schmeName"></param>
        /// <param name="mainSegId"></param>
        /// <param name="iniproj_Ids"></param>
        void SavePlan(string schmeName, string mainSegId, string[] iniproj_Ids);
    }
}
